<?php
function insertRecipeLabel($recipeId,$labelId) {
	transactionOpen();
	$dbLink = $GLOBALS["dbLink"];
	if($dbLink) {

		$result = mysql_query("insert into `recipe-label` (recipeId,labelId)
			 	values ('$recipeId','$labelId')",$dbLink);
		transactionClose();
		if (!$result) {
			redirectError("probles to get information");
		}			
	}
	else {
		transactionClose();
		redirectError("problems with data base connection");
	}
} // end insertRecipeLabel


?>